:root {
    --primary-color: #3a7bd5;
    --secondary-color: #00d2ff;
    --accent-color: #7928ca;
    --text-color: #333;
    --light-text: #909399;
    --bg-color: #f5f8fa;
    --card-bg: #ffffff;
    --border-radius: 16px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --accent-gradient: linear-gradient(135deg, #ff0080, var(--accent-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(125deg, #0b1523, #213853);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23132f4c' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23193657'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(58, 123, 213, 0.3), transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    animation: float 20s infinite alternate ease-in-out;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.3), transparent 70%);
    animation-delay: -5s;
    animation-duration: 18s;
}

.floating-element:nth-child(3) {
    bottom: 5%;
    left: 20%;
    background: radial-gradient(circle at center, rgba(121, 40, 202, 0.2), transparent 70%);
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 40px) scale(1.1);
    }
}

.upload-container {
    width: 100%;
    max-width: 600px;
    background-color: rgba(27, 38, 54, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.upload-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), transparent, rgba(0, 210, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.upload-header {
    padding: 24px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.upload-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.digital-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-image:
        radial-gradient(circle, rgba(0, 210, 255, 0.7) 2px, transparent 2px),
        radial-gradient(circle, rgba(58, 123, 213, 0.5) 2px, transparent 2px);
    background-size: 20px 5px, 20px 5px;
    background-position: 0 0, 10px 0;
}

.content-container {
    padding: 24px;
    color: white;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.upload-area:hover {
    border-color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.upload-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.upload-btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.upload-btn:hover::before {
    left: 100%;
}

.upload-btn:disabled {
    background: #3a485e;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.upload-btn:disabled::before {
    display: none;
}

.upload-tips-content {
    display: block;
}

.upload-tips-content.hidden {
    display: none;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    margin: 0 !important; 
}

#video {
    width: 100%;
    border-radius: var(--border-radius);
    background-color: #101820;
    display: none;
    transform: scale(1.01);
}

#canvas {
    display: none;
}

.camera-switch-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 100;
    display: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.camera-switch-btn:active {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
}

.file-list {
    margin-top: 24px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin: 16px;
}

.image-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    background: #1e293b;
}
.image-item:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: all 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ff4757;
    font-size: 16px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(-10px);
}

.image-item:hover .image-remove {
    opacity: 1;
    transform: translateY(0);
}

.image-remove:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.file-name-label {
    font-size: 12px;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    pointer-events: none;
    animation: shine 10s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
        top: -100%;
    }

    100% {
        left: 100%;
        top: 100%;
    }
}

/* 科技感装饰 */
.tech-circles {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 210, 255, 0.3);
    opacity: 0.5;
    pointer-events: none;
}

.tech-circles::before,
.tech-circles::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.tech-circles::before {
    width: 70%;
    height: 70%;
    border: 1px dashed rgba(58, 123, 213, 0.3);
}

.tech-circles::after {
    width: 40%;
    height: 40%;
    border: 1px dashed rgba(121, 40, 202, 0.3);
}

.tech-circles.top-right {
    top: -100px;
    right: -100px;
}

.tech-circles.bottom-left {
    bottom: -100px;
    left: -100px;
}

.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    height: 1px;
    width: 100px;
    opacity: 0.3;
}

.tech-line.top-left {
    top: 30px;
    left: -30px;
    transform: rotate(-45deg);
}

.tech-line.bottom-right {
    bottom: 30px;
    right: -30px;
    transform: rotate(-45deg);
}

/* 移动端优化 */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .upload-container {
        margin-top: 10px;
        border-radius: 12px;
    }

    .digital-dots {
        height: 3px;
        background-size: 16px 3px, 16px 3px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .upload-btn {
        width: 100%;
        padding: 14px;
    }

    .upload-header {
        font-size: 18px;
        padding: 16px;
    }

    .content-container {
        padding: 16px;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .floating-element {
        opacity: 0.5;
    }
}

.visualization-container {
    margin-top: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.visualization-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visualization-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
}

.visualization-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.selected-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#selectedImage {
    width: 100%;
    height: 100%;
}


.placeholder-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 14px;
}

.probability-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.probability-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.probability-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.probability-bar-container {
    height: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.probability-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 30px;
    transition: width 1s cubic-bezier(0.44, 0.05, 0.33, 1.06);
}

.probability-value {
    font-size: 13px;
    position: relative;
    z-index: 1;
    color: white;
    font-weight: 500;
    margin-left: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端样式优化 */
@media (max-width: 768px) {
    .visualization-content {
        grid-template-columns: 1fr;
    }
}

/* 添加设备特定的底部提示文本 */
.device-hint {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: none;
}

.desktop-device .device-hint.desktop-hint {
    display: block;
}

.global-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    z-index: 9999;
    transition: width 0.3s ease;
    opacity: 0;
}

.global-progress.active {
    opacity: 1;
    width: 100%;
    animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.empty-state {
    text-align: center;
    padding: 10px 30px 30px 30px;
    color: rgba(255, 255, 255, 0.5);
    display: block; /* 初始显示 */
}

.empty-icon {
    font-size: 32px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-text {
    font-size: 14px;
}

/* 页面头部样式 */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    color: white;
}

.header-logo img {
    width: 24px;
    height: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    height: 24px;
}


/* Gitee链接样式优化 */
.gitee-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  height: 24px; /* 固定高度确保对齐 */
  line-height: 1; /* 确保文本垂直居中 */
}

.gitee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px; /* 确保图标容器高度一致 */
}

.gitee-icon svg {
  fill: #C71D23;
  display: block; /* 防止svg底部有额外空间 */
  vertical-align: middle; /* 确保svg垂直居中 */
}

/* 页面头部样式优化 */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(27, 38, 54, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center; /* 确保子元素垂直居中 */
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  color: white;
  height: 24px; /* 与gitee-link保持一致的高度 */
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  height: 24px; /* 确保与其他元素高度一致 */
}

.header-action-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-action-item:hover {
    color: white;
}

/* 为了适应头部，调整主体内容的位置 */
body {
    padding-top: 80px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-header {
        height: 50px;
        padding: 0 15px;
    }
    
    .header-logo {
        font-size: 16px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    body {
        padding-top: 70px;
    }
}

/* 快门按钮样式 */
.shutter-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.shutter-inner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: white;
    transition: all 0.15s ease;
}

.shutter-btn:hover .shutter-inner {
    width: 50px;
    height: 50px;
}

.shutter-btn:active {
    transform: translateX(-50%) scale(0.9);
}

.shutter-btn:active .shutter-inner {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
}

/* 视频容器样式 */
.selected-image .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 视频元素样式 */
.selected-image .video-container #video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 确保占位符正确显示 */
.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* 快门按钮在视频容器中的位置 */
.selected-image .video-container .shutter-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}


/* 移动端适配 */
@media (max-width: 480px) {
    .shutter-btn {
        width: 60px;
        height: 60px;
        bottom: 15px;
    }
    
    .shutter-inner {
        width: 46px;
        height: 46px;
    }
}


/* 示例图片按钮样式 */
.example-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .example-image-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
  }
  
  .example-image-btn:active {
    transform: translateY(0);
  }
  
  /* 示例图片抽屉样式 */
  .example-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(27, 38, 54, 0.95);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .example-drawer.open {
    transform: translateY(0);
  }
  
  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .drawer-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
  }
  
  .close-drawer-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }
  
  .example-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
  }
  
  .example-image-item {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .example-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  
  .example-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
  }
  
  .example-image-label {
    padding: 10px;
    color: white;
    font-size: 12px;
    text-align: center;
  }
  
  /* 移动端适配 */
@media (max-width: 480px) {
    .example-images-container {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .example-image-btn {
      font-size: 11px;
      padding: 5px 8px;
      top: 8px;
      right: 8px;
    }
  }

  /* Toast提示样式 - 桌面端 */
.toast-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(26, 42, 108, 0.9), rgba(178, 31, 31, 0.9));
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: fadeInOut 2.5s ease forwards;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.toast-message.success {
  background: linear-gradient(135deg, rgba(29, 151, 108, 0.9), rgba(147, 249, 185, 0.9));
}

.toast-message.error {
  background: linear-gradient(135deg, rgba(255, 94, 98, 0.9), rgba(255, 153, 102, 0.9));
}

.toast-message.warning {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.9), rgba(255, 187, 0, 0.9));
}

.toast-message.info {
  background: linear-gradient(135deg, rgba(65, 88, 208, 0.9), rgba(83, 178, 254, 0.9));
}

.toast-icon {
  font-size: 16px;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -20px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  90% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -20px); }
}

  /* 闪光灯效果 */
.flash-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.1s ease-out;
}

.flash-effect.active {
    opacity: 0.8;
    animation: flash-animation 0.5s ease-out;
}

@keyframes flash-animation {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}
/* 拍照确认控制按钮 */
.photo-confirm-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 10;
}

.control-btn {
    width: 80px;
    height: 40px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.retake-btn {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: white;
}

.confirm-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

/* 拍照后的视频状态 */
.video-paused {
    pointer-events: none;
}

/* 再拍一张按钮 */
.retake-new-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.retake-new-btn:hover {
    transform: translateX(-50%) scale(1.05);
}

.retake-new-btn:active {
    transform: translateX(-50%) scale(0.95);
}